package com.wondertek.service.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wondertek.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;

/**
 * @author xqs
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user")
public class SysUserPo extends BaseEntity {

    /**
     * 用户名
     */
    @Schema(name = "username",description = "用户名")
    private String username;

    /**
     * 密码
     */
    @Schema(name = "password",description = "密码")
    private String password;

    /**
     * 用户头像地址
     */
    @Schema(name = "avatar",description = "用户头像地址")
    private String avatar;

    /**
     * 手机号
     */
    @Schema(name = "mobile",description = "手机号")
    private String mobile;

    /**
     * 邮箱
     */
    @Schema(name = "email",description = "邮箱")
    private String email;

    /**
     * 用户昵称
     */
    @Schema(name = "nickname",description = "用户昵称")
    private String nickname;

    /**
     * 岗位
     */
    @Schema(name = "position",description = "岗位")
    private String position;

    /**
     * 微信openid
     */
    @Schema(name = "wxOpenid",description = "微信openid")
    private String wxOpenid;

    /**
     * 微信unionid
     */
    @Schema(name = "wxUnionid",description = "微信unionid")
    private String wxUnionid;

    /**
     * 启用 ENABLE 关闭 DISABLE
     */
    @Schema(name = "status",description = "启用 ENABLE 关闭 DISABLE")
    private String status;



    /**
     * 身份证
     */
    @Schema(name = "idCard",description = "身份证")
    private String idCard;


    /**
     * 愉快政userid
     */
    @Schema(name = "ykzUserid",description = "愉快政userid")
    private String ykzUserid;


    /**
     * 用户类型1市物业2区县3街道办4业委会
     */
    @Schema(name = "type",description = "用户类型1市物业2区县3街道办4业委会")
    private String type;


    /**
     * 区域
     */
    @Schema(name = "regionCode",description = "区域")
    private String regionCode;


    /**
     * 街道
     */
    @Schema(name = "streeId",description = "街道")
    private String streeId;



    /**
     * 小区
     */
    @Schema(name = "communityId",description = "小区")
    private String community_id;

    @Schema(name = "countryCode",description = "区号")
    private String countryCode;

    //************ 以下非数据库字段 ***************

    @TableField(exist = false)
    @Schema(name = "sysRoles",description = "用户角色")
    private List<SysRolePo> sysRoles;

    @TableField(exist = false)
    @Schema(name = "sysDepartPos",description = "用户组织")
    private List<SysDepartPo> sysDepartPos;

}
